import React from 'react';
import styled from 'styled-components';

const SearchBtnWrapper = styled.div`
  width: 100%;
  height: 45px;
  background: #eee;
  span {
    display: block;
    width: 100%;
    height: 100%;
  }
`;


const SearchBtn = (props: any) => {
  const { toQuery } = props;
  return <SearchBtnWrapper>

    <span className="span" onClick={() => { toQuery() }}>搜索按钮</span>
  </SearchBtnWrapper>
}

export default SearchBtn;